#include "LinkExercise.h"

void saver::stringsave(struct saver *s) // Grabbing String Input
{
    saver* temp, *r;
    string name;
    cout << "Enter String to be Saved: " << endl;
    cin >> name;
    temp = new saver;
    temp->input = name;
    temp->nextsave = NULL;
    if (*s==NULL)
    {
        *s=temp;
    }
    else
    {
        r=*s;
        while (r->nextsave!=NULL)
        {
            r=r->nextsave;
        }
        r->nextsave=temp;
    }
    cout << "Saved" << endl;
}

void saver::outputall()
{
    
}

void saver::search()
{
    
}
